﻿using SD.Infrastructure.RepositoryBase;
using SlamDunk.MES.Domain.Entities.ResourceContext;
using System;
using System.Collections.Generic;

namespace SlamDunk.MES.Domain.IRepositories.Interfaces.ResourceContext
{
    /// <summary>
    /// 人员仓储接口
    /// </summary>
    public interface IPersonRepository : IAggRootRepository<Person>
    {
        #region # 分页获取人员列表 —— ICollection<Person> FindByPage(string keywords...
        /// <summary>
        /// 分页获取人员列表
        /// </summary>
        /// <param name="keywords">关键字</param>
        /// <param name="facilityIds">工厂模型Id集</param>
        /// <param name="personClassIds">人员类Id集</param>
        /// <param name="pageIndex">页码</param>
        /// <param name="pageSize">页容量</param>
        /// <param name="rowCount">总记录数</param>
        /// <param name="pageCount">总页数</param>
        /// <returns>人员列表</returns>
        ICollection<Person> FindByPage(string keywords, IList<Guid> facilityIds, IList<Guid> personClassIds, int pageIndex, int pageSize, out int rowCount, out int pageCount);
        #endregion
    }
}
